<?php
namespace app\index\controller;
use think\Controller;
use think\Request;
use think\Session;

class Base extends Controller
{
    public function __construct()
    {
       parent::__construct();

    }
	  public function get_session(){
	       $date= Session::get('date');
	       if(!$date){
              $this->redirect('Login/login');
	       }
      }
	 public function heade(){
		   	$date = Session::get('date');
			$mobile = substr($date['mobile'], 0, 3).'****'.substr($date['mobile'], 7);
			$this->assign('mobile',$mobile);
	 }

}
